package com.wofish.member.domain;


import com.wofish.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 余额明细表 wf_b2c_member_advance
 * 
 * @author wofish
 * @date 2019-05-21
 */
public class MemberAdvance extends BaseEntity {
	private static final long serialVersionUID = 1L;
	
	/** 日志id */
	private Long id;
	/** 用户id */
	private Long memberId;
	/** 出入金额,可正可负 */
	private BigDecimal money;
	/** 使用订单号 */
	private Long orderId;
	/** 支付单号 */
	private String paymentId;
	/** 业务类型，1-余额充值，2-下单使用 */
	private Integer type;
	/** 当前余额 */
	private BigDecimal memberAdvance;
	/** 备注 */
	private String remark;
	/** 操作员ID */
	private Long operatorId;
	/** 操作员 */
	private String operator;
	/** 创建时间 */
	private Date createTime;

	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return id;
	}
	public void setMemberId(Long memberId) {
		this.memberId = memberId;
	}

	public Long getMemberId() {
		return memberId;
	}
	public void setMoney(BigDecimal money) {
		this.money = money;
	}

	public BigDecimal getMoney() {
		return money;
	}
	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public Long getOrderId() {
		return orderId;
	}
	public void setPaymentId(String paymentId) {
		this.paymentId = paymentId;
	}

	public String getPaymentId() {
		return paymentId;
	}
	public void setType(Integer type) {
		this.type = type;
	}

	public Integer getType() {
		return type;
	}
	public void setMemberAdvance(BigDecimal memberAdvance) {
		this.memberAdvance = memberAdvance;
	}

	public BigDecimal getMemberAdvance() {
		return memberAdvance;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getRemark() {
		return remark;
	}
	public void setOperatorId(Long operatorId) {
		this.operatorId = operatorId;
	}

	public Long getOperatorId() {
		return operatorId;
	}
	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getOperator() {
		return operator;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("money", getMoney())
            .append("orderId", getOrderId())
            .append("paymentId", getPaymentId())
            .append("type", getType())
            .append("memberAdvance", getMemberAdvance())
            .append("remark", getRemark())
            .append("operatorId", getOperatorId())
            .append("operator", getOperator())
            .append("createTime", getCreateTime())
            .toString();
    }
}
